Platform Explorer / Nuxeo Platform LTS 2019 10.10

Component org.nuxeo.ecm.platform.comment.defaultPermissions

Requirements

Resolution Order

338
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.platform.comment.defaultPermissions">

  <require>org.nuxeo.ecm.core.security.defaultPermissions</require>
  <require>org.nuxeo.ecm.platform.content.template.service.ContentTemplateService.defaultContrib</require>

  <extension target="org.nuxeo.ecm.core.security.SecurityService"
    point="permissions">

    <permission name="Comment">
      <include>WriteLifeCycle</include>
    </permission>

    <permission name="Moderate" />

  </extension>

  <extension
      target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService"
      point="factoryBinding">
    <factoryBinding name="CommentRootFactory" factoryName="SimpleTemplateFactory"
                     targetType="CommentRoot">
      <acl>
        <ace granted="true" permission="AddChildren" principal="members"/>
        <ace granted="true" permission="RemoveChildren" principal="members"/>
      </acl>
     </factoryBinding>
  </extension>

</component>